/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package sdc.msg.use;

import sdc.Address;
import sdc.component.type.ComponentType;
import sdc.msg.Message;
import sdc.msg.MessageID;

/**
 *
 * @author yokoe
 */
public class DelegationMessage extends Message{

	private Address delegateAddress;

	public DelegationMessage(Address srcAddress, Address destAddress, ComponentType componentType, Address delegateAddress){
		super(srcAddress, destAddress, componentType);
		this.delegateAddress = delegateAddress;
	}

	public Address getDelegateAddress()
	{
		return this.delegateAddress;
	}


	@Override
	public MessageID getID() {
		return MessageID.DELEGATION;
	}
}
